Skip to content

Conversation

oable
Copy link

@oable oable commented Feb 9, 2023

No description provided.

@oable oable force-pushed the main branch 3 times, most recently from 67ffbfa to b5acf3e Compare February 28, 2023 18:46
) {
return "Invalid relayer fee.";
}
if (
state.transfer.useRelayer &&
(state.transfer.targetChain === CHAIN_ID_ACALA ||
state.transfer.targetChain === CHAIN_ID_KARURA) &&
state.transfer.targetChain === CHAIN_ID_KARURA ||
state.transfer.targetChain === CHAIN_ID_NEON) &&
!state.transfer.acalaRelayerInfo.data?.shouldRelay
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to handle state.transfer.neonRelayerInfo.data?.shouldRelay

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some think like this?
if ( state.transfer.useRelayer && (state.transfer.targetChain === CHAIN_ID_ACALA || state.transfer.targetChain === CHAIN_ID_KARURA || state.transfer.targetChain === CHAIN_ID_NEON) && (!state.transfer.acalaRelayerInfo.data?.shouldRelay || !state.transfer.neonRelayerInfo.data?.shouldRelay) ) {

Copy link
Contributor

@kev1n-peters kev1n-peters Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change it to:

  if (
    (state.transfer.useRelayer &&
      (state.transfer.targetChain === CHAIN_ID_ACALA ||
        state.transfer.targetChain === CHAIN_ID_KARURA) &&
      !state.transfer.acalaRelayerInfo.data?.shouldRelay) ||
    (state.transfer.targetChain === CHAIN_ID_NEON &&
      !state.transfer.neonRelayerInfo.data?.shouldRelay)
  ) {
    return "Token is ineligible for relay.";
  }

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I used your pattern.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-check please.

@oable oable force-pushed the main branch 2 times, most recently from 4ec4385 to ed0ad14 Compare March 2, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants